package database;

import java.util.ArrayList;
import java.util.List;

import model.SdkIndex;



public class Seed {
	
	private List<SdkIndex> listIndexes;
		
	public void loadIndex()
	{
		listIndexes = new ArrayList<SdkIndex>();
		init();

	}
	private void init() {
			
	listIndexes.add(new SdkIndex("Cor"));
	listIndexes.add(new SdkIndex("Valor"));
	listIndexes.add(new SdkIndex("Data"));
	listIndexes.add(new SdkIndex("Numero"));
	listIndexes.add(new SdkIndex("Tamanho"));
	listIndexes.add(new SdkIndex("Tempo"));
	listIndexes.add(new SdkIndex("Casa"));
	listIndexes.add(new SdkIndex("Bolsa"));
	listIndexes.add(new SdkIndex("Bola"));
	listIndexes.add(new SdkIndex("Horario"));
		
	SdkIndex sdkIndex = new SdkIndex();
		
		if (sdkIndex.getList().isEmpty())
		{
			
			for (SdkIndex i : listIndexes)
			{
				i.add();		
				
			}
			sdkIndex.commit();
		
			
		}
		
	}

}
